/*
 * XML Type:  TransactionEnum
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.TransactionEnum
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04;


/**
 * An XML TransactionEnum(@http://ofx.net/types/2003/04).
 *
 * This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
 */
public interface TransactionEnum extends org.apache.xmlbeans.XmlString
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s3A74FF4CC3627C5B0D40068015746F8A.TypeSystemHolder.typeSystem.resolveHandle("transactionenuma435type");
    
    org.apache.xmlbeans.StringEnumAbstractBase enumValue();
    void set(org.apache.xmlbeans.StringEnumAbstractBase e);
    
    static final Enum CREDIT = Enum.forString("CREDIT");
    static final Enum DEBIT = Enum.forString("DEBIT");
    static final Enum INT = Enum.forString("INT");
    static final Enum DIV = Enum.forString("DIV");
    static final Enum FEE = Enum.forString("FEE");
    static final Enum SRVCHG = Enum.forString("SRVCHG");
    static final Enum DEP = Enum.forString("DEP");
    static final Enum ATM = Enum.forString("ATM");
    static final Enum POS = Enum.forString("POS");
    static final Enum XFER = Enum.forString("XFER");
    static final Enum CHECK = Enum.forString("CHECK");
    static final Enum PAYMENT = Enum.forString("PAYMENT");
    static final Enum CASH = Enum.forString("CASH");
    static final Enum DIRECTDEP = Enum.forString("DIRECTDEP");
    static final Enum DIRECTDEBIT = Enum.forString("DIRECTDEBIT");
    static final Enum REPEATPMT = Enum.forString("REPEATPMT");
    static final Enum OTHER = Enum.forString("OTHER");
    
    static final int INT_CREDIT = Enum.INT_CREDIT;
    static final int INT_DEBIT = Enum.INT_DEBIT;
    static final int INT_INT = Enum.INT_INT;
    static final int INT_DIV = Enum.INT_DIV;
    static final int INT_FEE = Enum.INT_FEE;
    static final int INT_SRVCHG = Enum.INT_SRVCHG;
    static final int INT_DEP = Enum.INT_DEP;
    static final int INT_ATM = Enum.INT_ATM;
    static final int INT_POS = Enum.INT_POS;
    static final int INT_XFER = Enum.INT_XFER;
    static final int INT_CHECK = Enum.INT_CHECK;
    static final int INT_PAYMENT = Enum.INT_PAYMENT;
    static final int INT_CASH = Enum.INT_CASH;
    static final int INT_DIRECTDEP = Enum.INT_DIRECTDEP;
    static final int INT_DIRECTDEBIT = Enum.INT_DIRECTDEBIT;
    static final int INT_REPEATPMT = Enum.INT_REPEATPMT;
    static final int INT_OTHER = Enum.INT_OTHER;
    
    /**
     * Enumeration value class for net.ofx.types.x2003.x04.TransactionEnum.
     * These enum values can be used as follows:
     * <pre>
     * enum.toString(); // returns the string value of the enum
     * enum.intValue(); // returns an int value, useful for switches
     * // e.g., case Enum.INT_CREDIT
     * Enum.forString(s); // returns the enum value for a string
     * Enum.forInt(i); // returns the enum value for an int
     * </pre>
     * Enumeration objects are immutable singleton objects that
     * can be compared using == object equality. They have no
     * public constructor. See the constants defined within this
     * class for all the valid values.
     */
    static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase
    {
        /**
         * Returns the enum value for a string, or null if none.
         */
        public static Enum forString(java.lang.String s)
            { return (Enum)table.forString(s); }
        /**
         * Returns the enum value corresponding to an int, or null if none.
         */
        public static Enum forInt(int i)
            { return (Enum)table.forInt(i); }
        
        private Enum(java.lang.String s, int i)
            { super(s, i); }
        
        static final int INT_CREDIT = 1;
        static final int INT_DEBIT = 2;
        static final int INT_INT = 3;
        static final int INT_DIV = 4;
        static final int INT_FEE = 5;
        static final int INT_SRVCHG = 6;
        static final int INT_DEP = 7;
        static final int INT_ATM = 8;
        static final int INT_POS = 9;
        static final int INT_XFER = 10;
        static final int INT_CHECK = 11;
        static final int INT_PAYMENT = 12;
        static final int INT_CASH = 13;
        static final int INT_DIRECTDEP = 14;
        static final int INT_DIRECTDEBIT = 15;
        static final int INT_REPEATPMT = 16;
        static final int INT_OTHER = 17;
        
        public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
            new org.apache.xmlbeans.StringEnumAbstractBase.Table
        (
            new Enum[]
            {
                new Enum("CREDIT", INT_CREDIT),
                new Enum("DEBIT", INT_DEBIT),
                new Enum("INT", INT_INT),
                new Enum("DIV", INT_DIV),
                new Enum("FEE", INT_FEE),
                new Enum("SRVCHG", INT_SRVCHG),
                new Enum("DEP", INT_DEP),
                new Enum("ATM", INT_ATM),
                new Enum("POS", INT_POS),
                new Enum("XFER", INT_XFER),
                new Enum("CHECK", INT_CHECK),
                new Enum("PAYMENT", INT_PAYMENT),
                new Enum("CASH", INT_CASH),
                new Enum("DIRECTDEP", INT_DIRECTDEP),
                new Enum("DIRECTDEBIT", INT_DIRECTDEBIT),
                new Enum("REPEATPMT", INT_REPEATPMT),
                new Enum("OTHER", INT_OTHER),
            }
        );
        private static final long serialVersionUID = 1L;
        private java.lang.Object readResolve() { return forInt(intValue()); } 
    }
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static net.ofx.types.x2003.x04.TransactionEnum newValue(java.lang.Object obj) {
          return (net.ofx.types.x2003.x04.TransactionEnum) type.newValue( obj ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum newInstance() {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, null ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, options ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, null ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, options ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        public static net.ofx.types.x2003.x04.TransactionEnum parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.TransactionEnum) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
